
package com.flowmodule.bean;

import com.flowmodule.dao.TbFlowTypeDAO;
import com.usersmodule.bean.TbUsers;
import com.usersmodule.dao.TbUsersDAO;

public class TbFlow implements java.io.Serializable {

    private int flowId;

    private String flowName;

    private int flowTypeId;
    private TbFlowType tbFlowType;

    private int userId;
    private TbUsers tbUsers;
    
    public TbFlowType getTbFlowType() {
		return tbFlowType;
	}
	private String createTime;

    public int getFlowId(){
        return flowId;
    }

    public void setFlowId(int flowId){
        this.flowId = flowId;
    }

    public String getFlowName(){
        return flowName;
    }

    public void setFlowName(String flowName){
        this.flowName = flowName;
    }

    public int getFlowTypeId(){
        return flowTypeId;
    }

    public void setFlowTypeId(int flowTypeId){
        this.flowTypeId = flowTypeId;
        this.tbFlowType=new TbFlowTypeDAO().getTbFlowTypeByFlowTypeId(flowTypeId);
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
        this.tbUsers=new TbUsersDAO().getTbUsersByUserId(userId);
    }

    public TbUsers getTbUsers() {
		return tbUsers;
	}

	public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }

    public TbFlow(){
    }
    public TbFlow(String flowName,int flowTypeId,int userId){
        this.flowName = flowName;
        this.flowTypeId = flowTypeId;
        this.userId = userId;
    }
    public TbFlow(int flowId,String flowName,int flowTypeId,int userId){
        this.flowId = flowId;
        this.flowName = flowName;
        this.flowTypeId = flowTypeId;
        this.userId = userId;
     
    }
}

